<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
    <title>MyPetStore</title>
    <script type="text/javascript" src="/js/jquery-3.6.0.min.js"></script>
</head>
<body>
<div th:replace="/common/Header :: header"></div>
<div id="Content">
<div id="BackLink">
    <a th:href="@{main}">Return to Main Menu</a>
</div>

<div id="Catalog">

    <h2 th:utext="${session.category.description}">Category Des</h2>

    <table>
        <tr>
            <th>Product ID</th>
            <th>Name</th>
        </tr>
        <tr th:each="product:${productList}">
            <td ><a th:href="@{ViewProduct(productId=${product.productId})}" th:text="${product.productId}">ProductId</a></td>
            <td th:text="${product.getName()}">Name</td>
        </tr>
    </table>

</div>
</div>
<div th:replace="/common/Footer :: footer"></div>
</body>
</html>